namespace MyNamespace {
    
    
    public class SingletonClass {
        
        private static SingletonClass _instance;
        
        protected SingletonClass() {
        }
        
        public static SingletonClass Instance {
            get {
                if (_instance == null) {
_instance = new SingletonClass();
                }
                return _instance;
            }
        }
    }
}
